package pojo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Thread entity. @author MyEclipse Persistence Tools
 */

public class Thread implements java.io.Serializable {

	// Fields

	private Integer threadId;
	private Category category;
	private User user;
	private String threadTitle;
	private String threadContext;
	private Date postDate;
        private Date lastReply;
	private Integer viewTimes;
	private Integer replyTimes;
	private Boolean top;
	private Boolean highlight;
	private Boolean digest;
	private Boolean reply;
	private Set replies = new HashSet(0);

	// Constructors

	/** default constructor */
	public Thread() {
	}

	/** minimal constructor */
	public Thread(Integer threadId, Category category, User user,
			String threadTitle, String threadContext, Date postDate,
			Integer viewTimes, Integer replyTimes, Boolean top,
			Boolean highlight, Boolean digest, Boolean reply) {
		this.threadId = threadId;
		this.category = category;
		this.user = user;
		this.threadTitle = threadTitle;
		this.threadContext = threadContext;
		this.postDate = postDate;
		this.viewTimes = viewTimes;
		this.replyTimes = replyTimes;
		this.top = top;
		this.highlight = highlight;
		this.digest = digest;
		this.reply = reply;
	}

	/** full constructor */
	public Thread(Integer threadId, Category category, User user,
			String threadTitle, String threadContext, Date postDate,
                        Date lastReply,
			Integer viewTimes, Integer replyTimes, Boolean top,
			Boolean highlight, Boolean digest, Boolean reply, Set replies) {
		this.threadId = threadId;
		this.category = category;
		this.user = user;
		this.threadTitle = threadTitle;
		this.threadContext = threadContext;
		this.postDate = postDate;
                this.lastReply = lastReply;
		this.viewTimes = viewTimes;
		this.replyTimes = replyTimes;
		this.top = top;
		this.highlight = highlight;
		this.digest = digest;
		this.reply = reply;
		this.replies = replies;
	}

	// Property accessors


	public Integer getThreadId() {
		return this.threadId;
	}

	public void setThreadId(Integer threadId) {
		this.threadId = threadId;
	}

        public Date getLastReply() {
            return lastReply;
        }

        public void setLastReply(Date lastReply) {
            this.lastReply = lastReply;
        }

	public Category getCategory() {
		return this.category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getThreadTitle() {
		return this.threadTitle;
	}

	public void setThreadTitle(String threadTitle) {
		this.threadTitle = threadTitle;
	}

	public String getThreadContext() {
		return this.threadContext;
	}

	public void setThreadContext(String threadContext) {
		this.threadContext = threadContext;
	}

	public Date getPostDate() {
		return this.postDate;
	}

	public void setPostDate(Date postDate) {
		this.postDate = postDate;
	}

	public Integer getViewTimes() {
		return this.viewTimes;
	}

	public void setViewTimes(Integer viewTimes) {
		this.viewTimes = viewTimes;
	}

	public Integer getReplyTimes() {
		return this.replyTimes;
	}

	public void setReplyTimes(Integer replyTimes) {
		this.replyTimes = replyTimes;
	}

	public Boolean getTop() {
		return this.top;
	}

	public void setTop(Boolean top) {
		this.top = top;
	}

	public Boolean getHighlight() {
		return this.highlight;
	}

	public void setHighlight(Boolean highlight) {
		this.highlight = highlight;
	}

	public Boolean getDigest() {
		return this.digest;
	}

	public void setDigest(Boolean digest) {
		this.digest = digest;
	}

	public Boolean getReply() {
		return this.reply;
	}

	public void setReply(Boolean reply) {
		this.reply = reply;
	}

	public Set getReplies() {
		return this.replies;
	}

	public void setReplies(Set replies) {
		this.replies = replies;
	}

}